<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Notifications\Notifiable;
use Watson\Validating\ValidatingTrait;


class ElectiveStudent extends Model
{
    use Notifiable;
    use ValidatingTrait;
    public static $fields =['1'=>'软件设计','2'=>'数字多媒体'];
    protected $table = "elective_students";
    protected $fillable = [
        "student_name", "student_code","class","field"
    ];
    protected $rules = [
//        'open_id' => 'required|unique:wechat_users'
    ];
    protected $validationMessages = [
//        'open_id.required' => '用户名必填',
//        'open_id.unique' => '该id已经被注册过了',
    ];
}
